how to determine the general solution to a differential equation